package com.sunfeng.chap14;

import java.nio.ByteBuffer;

public class Test1_3 {
    public static void main(String[] args) {
        long currentTimeMillis = System.currentTimeMillis();
        ByteBuffer allocate = ByteBuffer.allocate(Integer.MAX_VALUE/1200);
        for (int i = 0; i < Integer.MAX_VALUE/1200; i++) {
            allocate.put((byte) 12311);

        }
        long end = System.currentTimeMillis();
        System.out.println(end-currentTimeMillis);
    }
}
